﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Arith.Inheritance
{
    class InheritDemo3
    {
        public static void Main()
        {
            IShape shape;

            shape = new Rectangle2();

            int ar = shape.GetArea(10, 30);

            Console.WriteLine(ar);
            Console.Read();
        }
    }
}
